const Mock = require('mockjs');

// 当前用户信息
Mock.mock('/user/info', 'get', {
  "success": true,
  "message": "success",
  "code": 200,
  "timestamp": 1534830476908,
  "result": {
    "id": "4363087427670016",
    "createBy": "",
    "createTime": "2018-05-03 15:09:42",
    "updateBy": "",
    "updateTime": "2018-06-06 18:58:25",
    "delFlag": 0,
    "username": "test",
    "name": "赵晶",
    "empNo": "E00001",
    "duty": "部长",
    "nickName": null,
    "mobile": "18782059038",
    "email": "1012139570@qq.com",
    "sex": 1,
    "avatar": "https://s1.ax1x.com/2018/05/19/CcdVQP.png",
    "type": 0,
    "status": 0,
    "description": null,
    "org": {
      "id": "4363087427670016",
      "name": "纪检部",
      "fullName": "XX厂纪检部",
      "description": null
    },
    "roles": [{
      "id": "496138616573953",
      "createBy": null,
      "createTime": null,
      "updateBy": null,
      "updateTime": null,
      "delFlag": 0,
      "name": "ROLE_USER",
      "defaultRole": null,
      "permissions": null
    }],
    "permissions": [{
      "id": "5129710648430592",
      "createBy": null,
      "createTime": null,
      "updateBy": null,
      "updateTime": null,
      "delFlag": 0,
      "name": "sys",
      "level": 1,
      "type": 0,
      "title": "系统管理",
      "path": "/form",
      "component": "Main",
      "icon": "ios-gear",
      "buttonType": null,
      "parentId": "",
      "description": "",
      "sortOrder": 1.00,
      "status": 0,
      "children": null,
      "permTypes": null,
      "expand": true,
      "checked": false,
      "selected": false
    }]
  }
});

// 零件信息
Mock.mock('/system/partList', 'get', {
  "success": true,
  "message": "success",
  "code": 200,
  "timestamp": 1535082178117,
  "result": {
    "content": [{
      "id": "16739222421508096",
      "createBy": "",
      "createTime": "2018-06-06 18:48:02",
      "updateBy": "",
      "updateTime": "2018-06-06 18:57:55",
      "delFlag": 0,
      "part_number": "P001",
      "part_graph_number": "T001",
      "material_furnance_number": "111",
      "part_name": "零件名称",
      "project_no": "111",
      "material_no": "111",
      "sample_status_phase": "111",
      "batch_number": "111",
      "status": "0",
      "remark": "备注"
    }],
    "pageable": {
      "offset": 0,
      "pageSize": 10,
      "pageNumber": 0,
    },
    "totalElements": 4,
    "totalPages": 1,
    "size": 10,
  }
});
